Skip to content

Update plugins SDK import path for restructured package#246

Merged
peteski22 merged 3 commits intomainfrom
fix/plugins-sdk-import-path
Feb 25, 2026
Merged

Update plugins SDK import path for restructured package#246
peteski22 merged 3 commits intomainfrom
fix/plugins-sdk-import-path

Conversation

@peteski22
Copy link
Contributor

@peteski22 peteski22 commented Feb 20, 2026

Summary

  • Updates import path for mcpd-plugins-sdk-go from .../pkg/plugins/v1/plugins to .../pkg/plugins/v1
  • The pluginv1 alias is preserved, so no other code changes are needed
  • NOTICE file will need regeneration after go.mod dependency version bump

Dependencies

  • Requires mcpd-proto#4 merged + released as v0.1.0
  • Requires mcpd-plugins-sdk-go#5 merged + released as v0.1.0
  • After both are released: go get github.com/mozilla-ai/mcpd-plugins-sdk-go@v0.1.0 && go mod tidy and regenerate NOTICE

Test plan

  • Import path change is correct
  • After SDK is released, verify go build ./... and make test pass

Summary by CodeRabbit

  • Chores
    • Simplified internal import path and updated module reference; bumped several dependencies (gRPC, Protobuf and various golang.org/x modules) — no user-facing API changes.
  • Documentation
    • Cleaned and refreshed the NOTICE file, removing obsolete license blocks and updating dependency license entries.
  • CI
    • Licence/NOTICE validation tightened to fail when NOTICE is out of date.

@coderabbitai
Copy link

coderabbitai bot commented Feb 20, 2026

Walkthrough

This PR updates plugin SDK import paths and refreshes module-related metadata: two internal files switch the plugin import from pkg/plugins/v1/plugins to pkg/plugins/v1; module path references in Makefile and CI were changed from github.com/mozilla-ai/mcpd/v2 to github.com/mozilla-ai/mcpd; go.mod dependency versions were bumped; NOTICE was adjusted to remove obsolete license blocks and update dependency entries.

Changes

Cohort / File(s) Summary
Plugin SDK import updates
internal/plugin/adapter.go, internal/plugin/manager.go
Changed import path from pkg/plugins/v1/plugins to pkg/plugins/v1. No API or behavioural changes.
Module path / licensing CI
.github/workflows/validate-licenses.yaml, Makefile
Replaced module path occurrences .../mcpd/v2.../mcpd in license checks and Makefile targets; added explicit exit on NOTICE mismatch in CI.
Dependency bumps
go.mod
Updated plugin SDK version and bumped several dependencies: golang.org/x/sync, golang.org/x/net, golang.org/x/sys, golang.org/x/text, google.golang.org/grpc, google.golang.org/protobuf, google.golang.org/genproto (rpc/status).
NOTICE updates
NOTICE
Removed two large MCP-related license blocks and refreshed dependency license/version entries to match updated modules.

Possibly related PRs

Suggested labels

plugins, dependencies

Suggested reviewers

  • dpoulopoulos
  • agpituk
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: updating the plugins SDK import path due to package restructuring in the SDK.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/plugins-sdk-import-path

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@internal/plugin/manager.go`:
- Line 24: The import pluginv1
("github.com/mozilla-ai/mcpd-plugins-sdk-go/pkg/plugins/v1") in
internal/plugin/manager.go is unresolvable with the current v0.0.2 module pin
(same issue as internal/plugin/adapter.go); update your module dependency to
v0.1.0 by bumping the version in go.mod and running `go mod tidy` to refresh
go.sum so the import resolves, then re-run `go build` to verify that references
to pluginv1 in manager.go (and adapter.go) compile successfully.

@peteski22 peteski22 marked this pull request as draft February 21, 2026 10:05
Update import path from:
  github.com/mozilla-ai/mcpd-plugins-sdk-go/pkg/plugins/v1/plugins
to:
  github.com/mozilla-ai/mcpd-plugins-sdk-go/pkg/plugins/v1

The alias 'pluginv1' is preserved so no other code changes are needed.
Requires mcpd-plugins-sdk-go v0.1.0 to be released first, at which
point go.mod and NOTICE should also be updated.
Points to the restructured package commit (pseudo-version) until
mcpd-plugins-sdk-go v0.1.0 is released, at which point this will
be updated to the real tag.
@peteski22 peteski22 force-pushed the fix/plugins-sdk-import-path branch from 48a3e1a to 1b4fe03 Compare February 25, 2026 11:57
@peteski22 peteski22 force-pushed the fix/plugins-sdk-import-path branch from 1b4fe03 to 6088f8a Compare February 25, 2026 11:59
@peteski22 peteski22 marked this pull request as ready for review February 25, 2026 12:00
@peteski22 peteski22 requested a review from Copilot February 25, 2026 12:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the import path for the mcpd-plugins-sdk-go package following a restructuring where the package path changed from .../pkg/plugins/v1/plugins to .../pkg/plugins/v1. The SDK version is also bumped from v0.0.2 to v0.1.0, bringing in various transitive dependency updates. Additionally, the Makefile and CI workflow files are corrected to use the proper module path without the /v2 suffix.

Changes:

  • Updated import paths for mcpd-plugins-sdk-go from .../pkg/plugins/v1/plugins to .../pkg/plugins/v1 while preserving the pluginv1 alias
  • Bumped mcpd-plugins-sdk-go from v0.0.2 to v0.1.0 with corresponding transitive dependency updates
  • Fixed Makefile MODULE_PATH and CI workflow references to remove incorrect /v2 suffix

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/plugin/manager.go Updated import path for mcpd-plugins-sdk-go to new package structure
internal/plugin/adapter.go Updated import path for mcpd-plugins-sdk-go to new package structure
go.mod Bumped mcpd-plugins-sdk-go to v0.1.0 and updated transitive dependencies
go.sum Updated checksums for mcpd-plugins-sdk-go v0.1.0 and all transitive dependencies
NOTICE Removed old package entries and updated version references for golang.org/x packages
Makefile Fixed MODULE_PATH from /v2 to match actual module path
.github/workflows/validate-licenses.yaml Fixed module path references in license validation workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@peteski22 peteski22 merged commit 6040e7a into main Feb 25, 2026
9 checks passed
@peteski22 peteski22 deleted the fix/plugins-sdk-import-path branch February 25, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants